#ifndef DOWNLOADOBJECT_H
#define DOWNLOADOBJECT_H

#include <QObject>
#include <QDebug>
#include <QFile>

#define QDOWNLOADER_VERSION "Version 2.1.1.1"

#define THEME_DOWNLOAD "DTheme/"
#define TR_LANGUAGE    "DLanguage/"

#define JPG_FILE       ".skn"

#define COFIGPATH      "downconfig.xml"

namespace DownloadObject
{
    static void checkTheDirectoryExist()
    {
        QFile config(COFIGPATH);
        if(!config.exists())
        {
            config.open( QIODevice::WriteOnly );
            config.close();
        }
    }

    const QString QToolButtonStyle = " \
           QToolButton{background-color:transparent;}\
           QToolButton::hover{ \
           background:qlineargradient(x1:0,y1:0,x2:0,y2:1,\
           stop:0 #EEEEEE,stop: 0.5 #EEEEEE,stop: 1.0 #EEEEEE);\
           border:none;}";

    const QString QToolButtonStyle2 = " \
           QToolButton{background-color:transparent;}\
           QToolButton::hover{background-color:rgba(255,255,255,20)}";

    const QString QPushButtonStyle = " \
           QPushButton{background-color:rgb(173,216,230);border:none;}\
           QPushButton::hover{\
           background:qlineargradient(x1:0,y1:0,x2:0,y2:1,\
           stop:0 #3BA1E6,stop: 0.5 #3BA1E6,stop: 1.0 #3BA1E6);\
           border:none;}";

    const QString QPushButtonStyle2 = " \
           QPushButton{ background-color:transparent;border:none;}\
           QPushButton::hover{\
           background:qlineargradient(x1:0,y1:0,x2:0,y2:1,\
           stop:0 #3BA1E6,stop: 0.5 #3BA1E6,stop: 1.0 #3BA1E6);\
           border:none;}";

    const QString QPushButtonStyle3 = " \
           QPushButton{ background-color:transparent;border:none;}\
           QPushButton::hover{\
           background:qlineargradient(x1:0,y1:0,x2:0,y2:1,\
           stop:0 #3BA1E6,stop: 0.5 #3BA1E6,stop: 1.0 #3BA1E6);\
           border:none;}";

    const QString QScrollBarStyle = " \
           QScrollBar{ background: #494949;width: 13px;}\
           QScrollBar::handle{background: #DBDBDB; min-width: 20px;min-height: 20px;}\
           QScrollBar::handle:vertical::disabled{ background:#DBDBDB;}\
           QScrollBar::handle:vertical:hover{ background:#DBDBDB; border:1px solid rgb(230,115,0);}\
           QScrollBar::add-line, QScrollBar::sub-line { background: none; border: none;}\
           QScrollBar::add-page, QScrollBar::sub-page { background: none; }";

    const QString QProgressBarStyle = " \
           QProgressBar{ border:none; background:rgb(210, 225, 240);text-align:center;} \
           QProgressBar::chunk {background:rgb(60, 140, 220);}";

    const QString QSliderStyle = " \
           QSlider::groove:vertical {border: 1px solid #4A708B; \
           background: #C0C0C0;  width: 5px;  border-radius: 1px;\
           padding-left:-1px;padding-right:-1px;  padding-top:-1px;  padding-bottom:-1px;}  \
           QSlider::sub-page:vertical {background: #575757;border:1px solid #4A708B;border-radius: 2px;}\
           QSlider::add-page:vertical {  \
           background: qlineargradient(x1:0, y1:0, x2:0, y2:1,  \
           stop:0 #c4c4c4, stop:1 #B1B1B1);  \
           background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,  \
           stop: 0 #5DCCFF, stop: 1 #1874CD);  \
           border: 0px solid #777;  width: 10px;border-radius: 2px;}  \
           QSlider::handle:vertical{\
           background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, \
           fx:0.5, fy:0.5, stop:0.6 #45ADED,stop:0.778409 rgba(255, 255, 255, 255));\
           height: 11px;margin-left: -3px;margin-right: -3px;border-radius: 5px;}\
           QSlider::handle:vertical:disabled {background: #eee;border: 1px solid #aaa;border-radius: 4px;}";
}

#endif // DOWNLOADOBJECT_H
